#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	printf("%s say it is %d o'clock\n", "张三", 10);
	printf("%x\n", 15);//0 1 2 3 4 5 6 7 8 9 a b c d e f
	printf("%d%%\n", 100);
	printf("%5d\n", 123);
	printf("%5d\n", 123456);
	printf("%-5dxxxx\n", 123);
	printf("%lf\n", 123.45);
	printf("%12lf\n", 123.45);
	printf("%.3lf\n", 123.45);
	printf("%.1lf\n", 123.45);//四舍五入了
	printf("%12.1lf\n", 123.45);
	printf("%*.*lf\n", 12, 1, 123.45);
	printf("%+d\n", 123);//总是显正负号
	printf("%+d\n", -123);
	printf("%.3s\n", "abcdef");

	int score = 0;
	printf("请输入成绩：");
	scanf("%d", &score);
	printf("成绩是%d\n", score);

	int a = 0;
	int b = 0;
	scanf("%d  \n%d", &a, &b);//地址之间要,连接   //输入"   3   2 "、"3,2"
	printf("%d\n%d\n", a, b);

	int c = 0;
	double d = 0;
	scanf("%d %lf", &c, &d);//输入"#13 0.45"、"13 0.456#7"、"     -13.45e12#3"
	printf("%d\n%lf", c, d);
	return 0;
}